//
//  NSError+AppAddtion.m
//  Backhome
//
//  Created by kwep_vbn on 2017/8/7.
//  Copyright © 2017年 SmartHome. All rights reserved.
//

#import "NSError+KNAppAddtion.h"

@implementation NSError (KNAppAddtion)

+ (instancetype)KNErrorWithMsg:(NSString *)msg code:(int)code {
    NSError *e = [NSError errorWithDomain:@"com.basemodule.error" code:code userInfo:@{@"message":msg,@"code":@(code)}];
    return e;
}

@end
